package com.sample.activity;


import com.sample.activity.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * メインアクティビティ
 * @author SASAKI
 *
 */
public class HttpSampleStartActivity extends Activity {

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // メイン画面を表示
        setContentView(R.layout.menu);

        Button btnHttpGet = (Button) findViewById(R.id.btn_GetTest);
        btnHttpGet.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// intent作成(へ遷移)
				Intent intent = new Intent(HttpSampleStartActivity.this, HttpGetActivity.class);
				startActivity(intent);
			}
		});

        Button btnHttpPost = (Button) findViewById(R.id.btn_PostTest);
        btnHttpPost.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// intent作成(へ遷移)
				Intent intent = new Intent(HttpSampleStartActivity.this, HttpPostActivity.class);
				startActivity(intent);
			}
		});

        Button btnSerial = (Button) findViewById(R.id.btn_SerialObject);
        btnSerial.setOnClickListener(new OnClickListener() {

			public void onClick(View view) {
				// intent作成(へ遷移)
				Intent intent = new Intent(HttpSampleStartActivity.this, HttpSerializableActivity.class);
				startActivity(intent);
			}
		});
    }
}